package net.ashrentum.timer;


public class TimeFrame implements Timer {
	
	long start;
	long end;
	
	public TimeFrame(long start, long end) {
		this.start = start;
		this.end = end;
	}
	
	public long getTime() {
		return end - start;
	}

	@Override
	public String toString() {
		return start + " - " + end;
	}

	@Override
	public void start() {
		start = System.currentTimeMillis();
	}

	@Override
	public void stop() {
		end = System.currentTimeMillis();
	}
}
